#include <bits//stdc++.h>

using namespace std;



void to_binary(int n,int *binary_len,int *binary) {
    int i = 0;
    while (n != 0) {
        binary[i] = n % 2;
        n /= 2;
        i++;
    }
    *binary_len = i;
}

void f(int n) {
    if (n == 0) {
        printf("%d",0);
        return;
    }
    int binary_len = 0;
    int binary[16];
    to_binary(n,&binary_len,binary);
    for(int i = binary_len - 1;i >= 0 ;i--) {
        if(binary[i] == 1) {
            if(i == 1) {
                printf("2");
            }else {
                printf("2(");
                f(i);
                printf(")");
            }
            if(i != 0) printf("+");
        }
    }
}

int main() {
    int n;
    cin >> n;
    f(n);
}